<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增面试结果</title>
</head>
<body>
<style type="text/css">
ul li{
	list-style:none;
	margin-top:20px;
	color:#6E6E6E;
	font-size:13px;
}
.interview-insert{
	width:1000px;
	height:500px;
	margin:20px auto;
}
.interviewone{
	font-size:18px;
	color:#30B399;
	width:1000px;
	height:30px;
	text-align:center;
	margin:10px auto;
	line-height:30px;
	background-color:#F4F4F4;
}
.interviewtwo{
	width:900px;
	height:100px;
	display: block;
	margin-top:10px;
}
.interview-left{
	width:400px;
	height:120px;
	float:left;
	margin-left: 30px;
}
.interview-right{
	width:400px;
	height:120px;
	float:right;
	margin-right:-90px;
}
.interview-left ul li,.interview-right ul li{
	margin-top:15px;
}   
.interviewthree{
	width:200px;
	height:30px;
	margin:40px auto;
}
.return{
		width:60px;
		height:25px;
		color:white;
		border:none;
		float:left;
		cursor:pointer;
}
.save{
		width:60px;
		height:25px;
		color:white;
		border:none;
		float:right;
		cursor:pointer;
}
.icon-insert-fanhui{
		padding-left: 20px;
		background:url('static/easyui/themes/icons/fanhui.png') no-repeat 5% 50%;
		background-color:#EC971F;
}
.icon-insert-baocun{
		padding-left: 20px;
		background:url('static/easyui/themes/icons/baocun.png') no-repeat 5% 50%;
		background-color:#13826B;
}
</style>
<script type="text/javascript">
		$(function(){
			//点击返回按钮
			$("#viewreturn").click(function(){
				add("recruitinterview");
			});
			//新增界面中确定按钮
			$("#viewsure").click(function(){
				//id
				var riviewid = $("#riviewid").val();
				 $.ajax({
						url:"interview-allplan",
						type:"get",
						dateType:"json",
						data:{riviewid:riviewid},
						success: function (result) {
						//新增面试意见
						var riviewoption = $("#riviewoption").val();
						//新增面试内容
						var riviewcontent = $("#riviewcontent").val();
						}
				 });
					var riviewid = $("#riviewid").val()
					var riviewoption = $("#riviewoption").val();
					var riviewcontent = $("#riviewcontent").val();
					$.ajax({
					url:"viewinsert",
					type:"post",
					data:{
						"riviewid":riviewid,
						"riviewoption":riviewoption,
						"riviewcontent":riviewcontent
					},
				success:function(result){	
						
					}
				})			
				$("#interviewinsert").window("close");	
				//页面刷新
				$("#content-admin").panel('open').panel('refresh','recruitinterview');
			})
		});
		//面试姓名
		$('#riviewname').combogrid({
	        panelWidth:200,
	        url:'select_interviewer',
	        singleSelect:true,
	        idField:'riviewname',
	        treeField:'riviewname',
	        columns:[[
	        	{field:'sortable',title:'#',width:35,align:'center'},
	        	{field:'riviewid',hidden:true},
	            {field:'riviewname',title:'面试人',width:160,align:'center'},
	        	 {field:'riviewway',title:'面试方式',width:160,align:'center',hidden:true,},
	        	 {field:'Staff_name',title:'面试官',width:160,align:'center',hidden:true,},
	        	 {field:'riviewtime',title:'面试时间',width:160,align:'center',hidden:true,}
	        ]],
	        onClickRow:function(rowIndex, rowData){
	    		$("#riviewid").val(rowData['riviewid']);
	    		$("#riviewway").val(rowData['riviewway']);
	    		$("#Staff_name").val(rowData['Staff_name']);
	    		$("#riviewtime").val(rowData['riviewtime']);
	    	}
	    });
		function add(text){   
			console.log(text);
			$("#content-admin").panel({
				href:text
			})
		}
</script>
	<div class="interview-insert">
	  <div class="interviewone">添加面试结果</div>
		<div class="interviewtwo">
			<div class="interview-left">
				<input type="hidden" id="riviewid">
				<input type="hidden" id="">
			   <ul style="width:400px;height:80px;margin-left:60px;">
			   		<li><span>面试人：</span><input id="riviewname" type="text" style="color:#777777;width:240px;"></li>
			   		<li><span>面试官：</span><input id="Staff_name" type="text" style="color:#777777;width:240px;"></li>
			   </ul>
			</div>
			<div class="interview-right">
				  <ul style="width:400px;height:80px;margin:auto;">
				  <li><span id="viewway" style="margin-left:-2px;">面试方式：</span><input id="riviewway" type="text" style="color:#777777;width:240px;"></li>
			   		<li><span>面试时间：</span><input id="riviewtime" type="text" style="color:#777777;width:240px;"></li>
			   </ul>
			</div>
		</div>
		<div class="interviewfour" style="width:930px;margin:10px auto;display:block;">
			<ul style="margin-left:40px;">
			   	<li><span>面试意见：</span><input id="riviewoption" type="text" style="color:#777777;width:767px;height:80px;"></li>
			   	<li><span>面试内容：</span><input id="riviewcontent" type="text" style="color:#777777;width:767px;height:80px;"></li>
			</ul>
		</div>
		<div class="interviewthree">
			<button id="viewreturn" class="return icon-insert-fanhui">返回</button>
			<button id="viewsure" class="save icon-insert-baocun">确定</button>
		</div>
</div>
</body>
</html>